Micron Document
🌎 rns.kin.earth git 🌍

Node / dev / reticulum / commits / 6ba7cc8

Commit 6ba7cc8cb451b4e187abe7c1a2ee8bf0480086f8


Parents : 880db0a
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-08-21T13:37:09+02:00

Added data flow speeds to rnstatus

Changes

1 files changed, 6 insertions(+), 4 deletions(-)


Diff

diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py
index b5f7015c..09d49412 100644
--- a/RNS/Utilities/rnstatus.py
+++ b/RNS/Utilities/rnstatus.py
@@ -696,11 +696,13 @@ def program_setup(configdir, dispall=False, verbosity=0, name_filter=None, json=
if "prxs" in stats and "ptxs" in stats and "arxs" in stats and "atxs" in stats:
parxs = stats["prxs"]+stats["arxs"]
patxs = stats["ptxs"]+stats["atxs"]
- mrxpct = 100.0-min(100.0, (parxs / stats["rxs"])*100.0) if stats["rxs"] else 100.0
- mtxpct = 100.0-min(100.0, (patxs / stats["txs"])*100.0) if stats["txs"] else 100.0
+ drxpct = 100.0-min(100.0, (parxs / stats["rxs"])*100.0) if stats["rxs"] else 100.0
+ dtxpct = 100.0-min(100.0, (patxs / stats["txs"])*100.0) if stats["txs"] else 100.0
+ drxs = stats["rxs"]*(drxpct/100.0)
+ dtxs = stats["txs"]*(dtxpct/100.0)
- if stats["rxs"] > 0: rxstat = f"{rxstat}, {int(mrxpct)}% data"
- if stats["txs"] > 0: txstat = f"{txstat}, {int(mtxpct)}% data"
+ if stats["rxs"] > 0: rxstat = f"{rxstat}, {int(drxpct)}% data ({RNS.prettyspeed(drxs)})"
+ if stats["txs"] > 0: txstat = f"{txstat}, {int(dtxpct)}% data ({RNS.prettyspeed(dtxs)})"
print(f"\n Totals : {txstat}\n {rxstat}")

Served by rngit 1.5.2 - Generated in 0.03s